Optimal. Leaf size=20 \[ \frac{x}{2 a}+\frac{\sinh (x) \cosh (x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0501591, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3175, 2635, 8} \[ \frac{x}{2 a}+\frac{\sinh (x) \cosh (x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\cosh ^4(x)}{a+a \sinh ^2(x)} \, dx &=\frac{\int \cosh ^2(x) \, dx}{a}\\ &=\frac{\cosh (x) \sinh (x)}{2 a}+\frac{\int 1 \, dx}{2 a}\\ &=\frac{x}{2 a}+\frac{\cosh (x) \sinh (x)}{2 a}\\ \end{align*}
Mathematica [A] time = 0.0024033, size = 18, normalized size = 0.9 \[ \frac{\frac{x}{2}+\frac{1}{4} \sinh (2 x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.022, size = 78, normalized size = 3.9 \begin{align*} -{\frac{1}{2\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}+{\frac{1}{2\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}+{\frac{1}{2\,a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }+{\frac{1}{2\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{1}{2\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}-{\frac{1}{2\,a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.05272, size = 34, normalized size = 1.7 \begin{align*} \frac{x}{2 \, a} + \frac{e^{\left (2 \, x\right )}}{8 \, a} - \frac{e^{\left (-2 \, x\right )}}{8 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.46211, size = 39, normalized size = 1.95 \begin{align*} \frac{\cosh \left (x\right ) \sinh \left (x\right ) + x}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 6.11654, size = 153, normalized size = 7.65 \begin{align*} \frac{x \tanh ^{4}{\left (\frac{x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac{x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac{x}{2} \right )} + 2 a} - \frac{2 x \tanh ^{2}{\left (\frac{x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac{x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac{x}{2} \right )} + 2 a} + \frac{x}{2 a \tanh ^{4}{\left (\frac{x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac{x}{2} \right )} + 2 a} + \frac{2 \tanh ^{3}{\left (\frac{x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac{x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac{x}{2} \right )} + 2 a} + \frac{2 \tanh{\left (\frac{x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac{x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac{x}{2} \right )} + 2 a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13112, size = 38, normalized size = 1.9 \begin{align*} -\frac{{\left (2 \, e^{\left (2 \, x\right )} + 1\right )} e^{\left (-2 \, x\right )} - 4 \, x - e^{\left (2 \, x\right )}}{8 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]